<%@ tag language="java" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:if test='${empty(sessionScope["user"])}'>
	<form id="formConnecter" action="Connecter" method="post"
		style="text-align: right">
		<span class="error">${msgLoginPassword}</span>
		<input type="text" name="email" placeholder="email" size="20" value='${param["email"]}'/> <input
			type="password" name="password" placeholder="password" size="10" />
		<button type="submit" style="border:none; background:transparent">
			<a href="javascript: document.getElementById('formConnecter').submit(); return false;">Connecter</a></button>
		<a href="CreerCompte">S'inscrire</a>
	</form>
</c:if>
<c:if test='${!empty(sessionScope["user"])}'>
	<form id="formDeconnecter" action="Deconnecter" method="post"
		style="text-align: right">
		<a
			href="javascript: document.getElementById('formDeconnecter').submit()">Déconnecter
			${sessionScope["user"].email}</a>
	</form>
</c:if>


